projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a0b6a3
)
imwayland: Plug leaks
author
Carlos Garnacho
<carlosg@gnome.org>
Tue, 30 Oct 2018 20:57:09 +0000
(21:57 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Tue, 18 Dec 2018 19:38:44 +0000
(20:38 +0100)
The various strings (pending/current preedit, surrounding, and commit
buffer) are being leaked in the case of GtkIMContext destruction.
gtk/gtkimcontextwayland.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimcontextwayland.c
b/gtk/gtkimcontextwayland.c
index 98fb2d335259c7653bbd2ee72ae6d64ae3848580..1b798ec40c3427428aaffee0ddbf0ad50162f537 100644
(file)
--- a/
gtk/gtkimcontextwayland.c
+++ b/
gtk/gtkimcontextwayland.c
@@
-388,6
+388,10
@@
gtk_im_context_wayland_finalize (GObject *object)
g_clear_object (&context->widget);
g_clear_object (&context->gesture);
+ g_free (context->surrounding.text);
+ g_free (context->current_preedit.text);
+ g_free (context->pending_preedit.text);
+ g_free (context->pending_commit);
G_OBJECT_CLASS (gtk_im_context_wayland_parent_class)->finalize (object);
}